<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript">
function save() {
        var pagetype="add";   
        var TOKEN=$("#TOKEN").val();
        var tCode=$("#tCode").val();
        var tName=$("#tName").val();
        var tValue=$("#tValue").val();
        var remark=$("#remark").val();
        var introduction=$("#introduction").val();
    	$.post("${rootDir }/system/add.dict.do",
      	{	
    		pagetype:pagetype,
    		TOKEN:TOKEN,
    		tCode:tCode,
    		tName:tName,
    		tValue:tValue,
    		remark:remark,
    		introduction:introduction
		},function(data)
				{
				$.pdialog.closeCurrent();
				}
		);
    	}
</script>
<div class="pageContent">
	<form method="post" action="${rootDir }/system/add.dict.do"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="TOKEN" id="TOKEN" value="${TOKEN}">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>code：</label> 
				<input id="tCode" name="tCode" 
					type="text" size="30" value="" alt="" />
			</p>
			<p>
				<label>名称：</label> 
				<input id="tName" name="tName" 
					type="text" size="30" value="" alt="" />
			</p>
			<p>
				<label>value：</label> <input id="tValue" name="tValue" type="text"
					size="30" value="" alt="" />
			</p>
			<p>
				<label>category：</label> 
				<input id="category" name="category" type="text" size="30" value="financedefine" alt="" />
			</p>
			<p>
				<label>备注：</label> <input id="remark" name="remark" type="text"
					size="30" value="" alt="" />
			</p>
			<p>
				<label>说明：</label>
				<textarea cols="65" rows="5" id="introduction" name="introduction"></textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>淇濆瓨</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="button" onclick="javascript:save()">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
